import request from '@/sheep/request';

export default {
	// 大家都在搜
	getHistoryList: (data) =>
		request({
			url: '/api/v1/image/search/history',
			method: 'GET',
			data,
			custom: {
				showSuccess: false,
				loadingMsg: '加载中',
				successMsg: '加载完成'
			},
		}),
	//猜你喜欢列表
	getLikesList: (data) =>
		request({
			url: '/api/v1/image/likes',
			method: 'GET',
			data,
			custom: {
				showSuccess: false,
				loadingMsg: '加载中',
				successMsg: '加载完成'
			},
		}),
	//文字搜索
	searchTextDetail: (data) =>
		request({
			url: '/api/v1/image/search',
			method: 'post',
			data,
			custom: {
				showSuccess: false,
				loadingMsg: '加载中',
				successMsg: '加载完成'
			},
		}),
}